﻿//main.cpp

#include <iostream>
#include "Expr.h"
using namespace std;

int main() {
	char ch[] = "66*(1+0.1-8)*2.1*(3-2.66+96/31)";

	Expr* expr = new Expr(ch);
	cout << "中缀:";
	expr->print();
	cout << endl << "后缀:";
	expr->print_post();
	cout << endl << "前缀:";
	expr->print_pre();
	cout << endl << "值:";
	cout << expr->eval();

}
